package com.swh.service.Impl;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.swh.dao.SysLogDao;
import com.swh.entity.QualificationCondition;
import com.swh.entity.SysLog;
import com.swh.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/12/14 14:46
 * @Version: 1.0
 */
@Service
public class SysLogServiceImpl extends BaseServiceImpl<SysLog> implements SysLogService {

    @Autowired
    public SysLogServiceImpl(SysLogDao sysLogDao) {
        super(sysLogDao);
    }

    @Autowired
    private SysLogDao sysLogDao;

    @Override
    public PageInfo<Map> selectPage(Integer pageNum, Integer pageSize, QualificationCondition condition) {
        PageHelper.startPage(pageNum,pageSize);
        List<Map> list = sysLogDao.selectPage((pageNum - 1) * pageSize, pageSize, condition);
        return new PageInfo<>(list);
    }



}
